﻿using System.Data;
using EastFantasy.DnfAccountScan.DAL;
using EastFantasy.DnfAccountScan.Model;

namespace EastFantasy.DnfAccountScan.BLL
{
    public static class AccountBll
    {
        static readonly AccountDal dal = new AccountDal();

        #region 上传正确的账号到数据库
        /// <summary>
        /// 上传正确的账号到数据库
        /// </summary>
        /// <param name="account"></param>
        /// <returns></returns>
        public static bool Upload(Account account)
        {
            return dal.Upload(account);
        }
        #endregion

        #region 获取服务器的正确账号
        /// <summary>
        /// 获取服务器的正确账号
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="server">大区</param>
        /// <param name="level">等级</param>
        /// <returns></returns>
        public static DataTable GetAccountByCondition(string start, string end, string server, string level)
        {
            return dal.GetAccountByCondition(start, end, server, level);
        }
        #endregion
    }
}
